﻿Public Class lilian
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

   
    Protected Sub btnsumar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnsumar.Click
        txtresultado.Text = Val(txtnum1.Text) + Val(txtnum2.Text)
    End Sub

    Protected Sub btnrestar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnrestar.Click
        txtresultado.Text = Val(txtnum1.Text) - Val(txtnum2.Text)
    End Sub

    Protected Sub btnmultiplicar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnmultiplicar.Click
        txtresultado.Text = Val(txtnum1.Text) * Val(txtnum2.Text)
    End Sub

    Protected Sub btndividir_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btndividir.Click
        txtresultado.Text = Val(txtnum1.Text) / Val(txtnum2.Text)
    End Sub
End Class